package com.plian.system.dao.sys.timing;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.dao.DaoSupport;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class TimingDao {
    @Resource(name = "daoSupport")
    private DaoSupport dao;

    public void save(PageData pd) throws Exception {
        dao.save("TimingMapper.save",pd);
    }
    public void del_ids(List<String> list) throws Exception {
        dao.delete("TimingMapper.del_ids",list);
    }
    public void edit(PageData pd) throws Exception {
        dao.update("TimingMapper.edit",pd);
    }
    public List<PageData> list(PageData pd) throws Exception {
       return (List<PageData>) dao.findForList("TimingMapper.list",pd);
    }
    public PageData findbyid(String  id) throws Exception {
        return (PageData) dao.findForObject("TimingMapper.findbyid",id);
    }
    public PageData editByExecutionTime(PageData  pd) throws Exception {
        return (PageData) dao.findForObject("TimingMapper.editByExecutionTime",pd);
    }
}
